/** 技术数据分析模块 **/

import http from "@/api";

// 获取用户自定义配置列
export const getUserCustomColumn = (params) => {
    return http.post( `/historyTrack/getUserCustomColumn`, params); 
};

// 获取用户自定义配置数据
export const getUserCunstomTreeData = (params) => {
    return http.post( `/historyTrack/getCustomColumnTree`, params); 
};

// 更新用户自定义配置数据
export const updateUserCustomData = (params) => {
    return http.post( `/historyTrack/updateOrgCustom`, params); 
};

// 获取报文列表内容
export const getMessageTableList = (params) => {
    return http.post( `/message/getMessageListForPage`, params); 
};

// 增加报文离线导出任务
export const addMessageExportTask = (params) => {
    return http.post( `/message/exportMessageTask`, params); 
};

// 获取导出报文列表内容
export const getExportMessageTableList = () => {
    return http.post( `/message/getMessageExportHistory`, params); 
};

// 事件统计表头查询
export const getEventTableColumn = (params) => {
    return http.post( `/report/getEventDataStatHeader`, params); 
};

// 获取事件统计表列表内容
export const getEventTableList = (params) => {
    return http.post( `/report/getEventDataStatListForPage`, params); 
};

// 事件导出任务添加
export const addEventTask = (params) => {
    return http.post( `/report/exportEventTask`, params); 
};

// 获取事件统计分析导出列表
export const getEventExportList = (params) => {
    return http.post( `/report/getEventExportHistory`, params); 
};

// 获取故障诊断统计表表头
export const getFaultDiagStatisTableColumn = (params) => {
    return http.post( `/report/getVehicleFaultStatHeader`, params); 
};

// 获取故障诊断统计表列表内容
export const getFaultDiagStatisTableList = (params) => {
    return http.post( `/report/getVehicleFaultStatListForPage`, params); 
};

// 获取故障诊断详情表表头
export const getFaultDiagDetailTableColumn = (params) => {
    return http.post( `/report/getVehicleFaultDetailHeader`, params); 
};

// 获取故障诊断详情表列表内容
export const getFaultDiagDetailTableList = (params) => {
    return http.post( `/report/getVehicleFaultDetailListForPage`, params); 
};

// 故障诊断详情导出任务添加
export const addFaultDetailExportTask = (params) => {
    return http.post( `/report/commitFaultExport`, params); 
};

// 获取故障诊断导出列表
export const getFaultDetailExportList = (params) => {
    return http.post( `/report/getFaultExportHistory`, params); 
};

// 获取故障诊断详情汇总表表头
export const getFaultDiagDetailSummaryTableColumn = (params) => {
    return http.post( `/report/getVehicleFaultDetailSummaryHeader`, params); 
};

// 获取故障诊断详情表汇总列表内容
export const getFaultDiagDetailSummaryTableList = (params) => {
    return http.post( `/report/getVehicleFaultDetailSummaryListForPage`, params); 
};

// 获取调度任务历史表头
export const dispatchTaskHistoryTableColumn = (params) => {
    return http.post( `/vehicleDispatch/getDispatchHistoryHeader`, params); 
};

// 获取调度任务历史列表内容
export const dispatchTaskHistoryTableList = (params) => {
    return http.post( `/vehicleDispatch/queryDispatchHistoryListForPage`, params); 
};